package model;


import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Desciption:服务请求数据模型
 * @author: Anc
 * @date: 2022/7/01
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Request<T> extends BaseObject implements Serializable {

    private static final long serialVersionUID = -540438546346215406L;
    /**
     * 请求数据
     */
    private T data;
    /**
     * 商户编号
     */
    private String merchantCode;
    /**
     * 签名串
     */
    private String sign;


    public Request() {
    }

    public Request(T data, String merchantCode, String sign) {
        this.data = data;
        this.merchantCode = merchantCode;
        this.sign = sign;
    }

    public Request(String merchantCode, String sign) {
        this.merchantCode = merchantCode;
        this.sign = sign;
    }
}
